package com.gitee.sop.order.strategy.common;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 策略工厂
 *
 * @author Admin
 */
@Component
public class StrategyContext {

    @Autowired
    private OrderStrategyContext orderStrategyContext;

    public OrderStrategy getStrategy(Integer key) {
        return orderStrategyContext.getOrderStrategy(key);
    }
}
